﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Kevin.Shop.Business.Core.Enumerations;
using Kevin.Shop.Business.Service.Entity.Products.Enumerations;
using Kevin.Shop.Business.Service.Entity.Products.Product;
using RiderShop.Mobile.Common.Component;

namespace RiderShop.Mobile.ServiceEntity.Product
{
    public class PromotionProductExtend : PromotionProduct
    {
        public new string ActualImageUrl
        {
            get { return SiteUrl.FormatProductImageUrl(ImageType.Size350,ProductId, ImageName); }
        }

        public  string PromotionTypeIcon
        {
            get { return SiteUrl.FormatUrl("WebSite_Image_PromoIcon", PromotionTypeStr); }
        }

        public string LittleTitle 
        { 
            get { return Title.Length < 40 ? Title : Title.Substring(0, 38) + ".."; }
        }
    }
}
